import random
# def info(name, age ,gender = 'nan'):
#     print('姓名：',name)
#     print('年龄：',age)
#     print('性别：',gender)
#
#
# info(age = 20 , name = 'jack')

# def sum(*args):
#     print(args)
#     # 元组是可以遍历，可以调用元组中的元素，不能修改元组中的元素
#
#
# sum(1,3,2,6,4,7)

def sum(**kwargs): #key word argument
    print(kwargs)
    # 元组是可以遍历，可以调用元组中的元素，不能修改元组中的元素



dic1 = {f'{i}':random.randint(0,20) for i in range(1,10)}
print(dic1)
# sum(a =1, c= 3,f =2,b = 6,z= 4,g =7)

sum(name = 'zhangsan' ,age = 18, phone = 1112333445)
